package com.wdl.datarest.implementation;

import ch.qos.logback.core.net.SyslogOutputStream;

public class test {
	public static void main(String[] args) {
		String a = "@B#@|01|012|864891030571266|9460011506525628|1|21|62|23|0&0&0&0|20190905075545|@E#@";

		String[] arr = a.split("\\|");

		for (String r : arr) {
			System.out.println(r);
		}
	}

	public static String stringToUnicode(String string) {
		StringBuffer unicode = new StringBuffer();
		for (int i = 0; i < string.length(); i++) {
			char c = string.charAt(i); // 取出每一个字符
			unicode.append(Integer.toHexString(c));// 转换为unicode
		}
		return unicode.toString();
	}
}
